﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhp.Entity.SysEnum;

namespace Zhp.Model.Sys
{
    /// <summary>
    /// 
    /// </summary>
    public class RoleMenuModel
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单类型
        /// </summary>
        public MenuTypeEnum MenuType { get; set; }

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<RoleMenuModel> Children { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class RoleMenuCreate
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }

        /// <summary>
        /// 菜单ID
        /// </summary>
        public List<long> MenuIdList { get; set; }
    }
}
